home *** CD-ROM | disk | FTP | other *** search
- Path: emmi.physik.tu-berlin.DE!not-for-mail
- From: Peter Kelm <kelm@emmi.physik.TU-Berlin.DE>
- Newsgroups: comp.sys.m68k
- Subject: how to convert locical to physical address on 68040
- Date: Mon, 22 Jan 1996 21:21:13 +0100
- Message-ID: <Pine.SOL.3.91.960122210823.17385A-100000@emmi.physik.TU-Berlin.DE>
- NNTP-Posting-Host: emmi.physik.tu-berlin.de (130.149.40.97)
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Access: 16 917
-
- Hello,
- I need to convert a given logical address into a physical one (I am
- programming on a macintosh but the code of course is only processor
- dependent). The problem behind is to examine how the MacOS has mapped
- itself (to get NetBSD un*x running on a 040). Read all of the literature I
- could get (for example M68040 Users Manual). But my code still fails.
-
- This is what I tried:
- 1) use "ptestr (a0)" wit the logical address in a0. The get the mmusr
- (movec mmusr,d0), extract the address part and put it together with a
- part of the logical address to form the physical.
- 2) -get mmu root pointer
- -do the table walk by hand (get TIA part - form root level table
- descriptor, get TIB part, ...)
-
- The processor is in supervisor mode.
- Has anyone out there a working address conversion code or a URL pointer
- to such a source code fragment ???
-
- Thanks Peter
-
- --- beam me up Scotty, this planet sucks ---
- Plan B
- Peter Kelm (kelm@physik.tu-berlin.de)
-
- Technical University Berlin
- Physics Department
-
-